<!--
 * @Author: canlong.shen
 * @Date: 2021-11-02 10:21:43
 * @LastEditors: your name
 * @LastEditTime: 2021-11-02 10:25:18
 * @Description: file content
-->
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>数据和模板分离</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="https://unpkg.com/vue@next"></script>
    </head>
    <body>
       <div id="root">
       </div>
       <script>
            Vue.createApp({
                data(){
                    return {
                        count : 0
                    }
                },
                template:`<div>{{count}}</div>`
            }).mount("#root")

       </script>
    </body>
</html>